#include <iostream>
#include <vector>
using namespace std;
 
int main() // Day33_1_dp或找规律
{
    int n = 0;
    cin >> n;
    cout << (1 << (n - 1));
    return 0;
}